﻿using UnityEngine;

namespace HEFramework
{
    /// <summary>
    ///
    /// UI画布行为接口
    /// 
    /// ----------------------------------------
    /// 作者：pan
    /// 创建时间：2021-03-21 00:57:58
    /// ----------------------------------------
    /// </summary>
    public interface IUICanvasBehaviour : IUIBehaviour
    {
        /// <summary>
        /// 画布
        /// </summary>
        Canvas Canvas { get; }

        /// <summary>
        /// 画布组
        /// </summary>
        CanvasGroup CanvasGroup { get; }

        /// <summary>
        /// 设置渲染排序
        /// </summary>
        /// <param name="_order"></param>
        /// <returns></returns>
        IUICanvasBehaviour SetOrder(int _order);

        /// <summary>
        /// 设置相机
        /// </summary>
        /// <param name="_camera"></param>
        /// <returns></returns>
        IUICanvasBehaviour SetCamera(Camera _camera);

        /// <summary>
        /// 打开
        /// </summary>
        IUICanvasBehaviour Open();

        /// <summary>
        /// 关闭
        /// </summary>
        IUICanvasBehaviour Close();
    }
}